package main;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Iterator;

public class StringsIter implements Iterable<String> {
  private final File sourceFile;

  public StringsIter(final File sourceFile) throws FileNotFoundException {
    this.sourceFile = sourceFile;
  }

  private Iterator<String> itr() {
    return new Strings(sourceFile);
  }

  @Override
  public Iterator<String> iterator() {
    return itr();
  }

}